<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<script type="text/javascript" src="<c:url value='/scripts/tagUtils.js'/>"></script>
<script language="javascript">
function openErrMsgDialog() {
	alert('<%=((Throwable)request.getAttribute("exception")).getMessage().replaceAll("'", "\\\\\'").replaceAll("\n","\\\\n")%>');
	
   	var random = '<%=request.getAttribute("random")%>';
   	
   	if(random && random > 0 && random < 1){
		window.parent.TabTagUtils.closeActiveTab();
   	} else {
		history.back();
   	}
}
</script>
</head>
 <body onload="openErrMsgDialog();">
</body>
</html>